"""
文件名: __init__.py
描述: API v1版本路由集合

本模块包含以下主要路由：
1. auth - 用户认证和授权
2. users - 用户管理
3. categories - 分类管理
4. channels - 频道管理
5. videos - 视频内容
6. search - 搜索功能

依赖模块:
   - fastapi: Web框架路由
   - 各个具体路由模块

使用示例:
   >>> from src.api.v1 import api_router
   >>> app.include_router(api_router, prefix="/api/v1")

注意事项:
   - 统一的API响应格式
   - 完整的错误处理
   - 权限验证中间件
   - API文档和标签

作者: AI助手
创建日期: 2024-06-27
最后修改: 2024-06-27
版本: 1.0.0
"""

from fastapi import APIRouter

from .auth import router as auth_router
from .users import router as users_router
from .categories import router as categories_router
from .channels import router as channels_router
from .videos import router as videos_router
from .search import router as search_router
from .monitoring import router as monitoring_router

# 创建API v1路由器
api_router = APIRouter()

# 包含所有子路由
api_router.include_router(
    auth_router, 
    prefix="/auth", 
    tags=["认证"]
)

api_router.include_router(
    users_router, 
    prefix="/users", 
    tags=["用户管理"]
)

api_router.include_router(
    categories_router, 
    prefix="/categories", 
    tags=["分类管理"]
)

api_router.include_router(
    channels_router, 
    prefix="/channels", 
    tags=["频道管理"]
)

api_router.include_router(
    videos_router, 
    prefix="/videos", 
    tags=["视频内容"]
)

api_router.include_router(
    search_router, 
    prefix="/search", 
    tags=["搜索功能"]
)

api_router.include_router(
    monitoring_router, 
    prefix="/monitoring", 
    tags=["系统监控"]
)

__all__ = [
    "api_router",
]